package com.yzh.opp4.teacher;

public class Italian extends Programmer {
    //方法1：从父类继承的  writeCode

    //方法2：重写父类的方法

    @Override
    public void eat() {
        System.out.println("----------Italian eat pizza with hand ------------");
    }

    //方法3：子类特有的方法
    public void playFootBall(){
        System.out.println("------------Italian play football---------------");
    }
}
